<?php include 'inc/top.php';?>
<?php include 'inc/menu_top.php';?>
<?php include 'inc/boxtop.php';?>
<div id="home">
  	<?php 
  			if(isset($_GET["product_id"]) && $_GET["product_id"]!=""){
	  			$product_id = $_GET["product_id"];
			  	$sql_small = "SELECT p.*
			  			  FROM tb_product p
			  			  WHERE p.product_id = ".$product_id;
			  	$query_small = mysql_query($sql_small);
			  	$i = 1;
			  	while ($data_small = mysql_fetch_array($query_small)){
		  		?>
		  			<table width="50%" style="margin:auto;">
			  			<thead>
			  				<tr>
			  					<td colspan="2"><img width="100%" height="100%" src="http://themeviet.org/data/theme_tivi.jpg" /></td>
			  				</tr>
		  				</thead>
		  				<tbody bgcolor="#3883cc" style="border:none; color:yellow;">
			  				<tr align="center">
			  					<td>Tên sản phẩm : <?php echo $data_small["product_name"]?></td>
			  				</tr>
			  				<tr align="center">
			  					<td>Gía sản phẩm : <?php echo $data_small["product_price"]?> nghìn đồng</td>
			  				</tr>
			  				<tr align="center">
			  					<td>Thông tin chi tiết : <?php echo $data_small["product_info"]?></td>
			  				</tr>
			  				<tr align="center">
			  					<td><input type="button" p_id="<?php echo $data_small["product_id"];?>" onclick="addToCart(this);" value="Thêm vào giỏ" /> </td>
			  				</tr>
		  				</tbody>
		  			</table>
					<img id="loader_image" src="style/images/gif/loading_black.gif"  alt="loading...">
	<?php }
  			}else{
  				echo "Sản phẩm không tồn tại!";
  			}
	?>
		
</div>
<?php include 'inc/sidebar_right.php';?>
<?php include 'inc/bottom.php';?>